package org.pfc.porlapatilla.model;

import java.util.List;

/**
 * This class represents a product category.
 * 
 * @author jorgepolobermudez
 * 
 */
public class Category {

    /**
     * The category id.
     */
    private String id;

    /**
     * The category name.
     */
    private String name;

    /**
     * The list of subcategories.
     */
    private List<String> subcategories;

    /**
     * Default constructor
     */
    public Category() {
	super();
    }

    /**
     * Creates a new category.
     * 
     * @param name
     *            The new category name.
     * @param subcategories
     *            The new category subcategories.
     */
    public Category(String name, List<String> subcategories) {
	this.name = name;
	this.subcategories = subcategories;
    }

    /**
     * Get the category id.
     * 
     * @return The category id.
     */
    public String getId() {
	return id;
    }

    /**
     * Set the category id.
     * 
     * @param id
     *            The id to set
     */
    public void setId(String id) {
	this.id = id;
    }

    /**
     * Get the category subcategories.
     * 
     * @return The category subcategories.
     */
    public List<String> getSubcategories() {
	return subcategories;
    }

    /**
     * Set the category subcategories.
     * 
     * @param subcategories
     *            The subcategories to set
     */
    public void setSubcategories(List<String> subcategories) {
	this.subcategories = subcategories;
    }

    /**
     * Get the category name.
     * 
     * @return The category name.
     */
    public String getName() {
	return name;
    }

    /**
     * Set the category name.
     * 
     * @param name
     *            The name to set.
     */
    public void setName(String name) {
	this.name = name;
    }

}
